<?php

namespace Modules\Buy\Entities;

use Illuminate\Database\Eloquent\Model;

class Card extends Model
{
    protected $guarded = [];

//    购物车模型关联商品模型
    public function good()
    {
        return $this->belongsTo(Good::class,'good_id','id');
    }


//    购物车关联货品
    public function huowu()
    {
        return $this->belongsTo(Huowu::class,'huowu_id','id');
    }
}
